home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / plain C OS8 / Everything / DModalTextData.h < prev    next >
Encoding:
Text File  |  1998-10-29  |  2.0 KB  |  71 lines  |  [TEXT/CWIE]

  1. // DModalTextData -- data class for Everything
  2.  
  3. #pragma once
  4.  
  5. #include "AMSignaler.h"
  6.  
  7. #define idSmall2        'Sma2'
  8. #define idLarge2        'Lar2'
  9. #define idX12346        'X146'
  10. #define idX12345e7        'X127'
  11. #define idPassword2        'Pas2'
  12. #define idDate2        'Dat2'
  13. #define idTime2        'Tim2'
  14. #define idStyled2        'Sty2'
  15.  
  16. //----------
  17. struct DModalTextData {
  18.     AMSignaler        super;
  19.  
  20.     Str255        mSmall2;
  21.     Str255        mLarge2;
  22.     SInt32        mX12346;
  23.     double        mX12345e7;
  24.     Str255        mPassword2;
  25.     LongDateRec        mDate2;
  26.     LongDateRec        mTime2;
  27.     Str255        mStyled2;
  28. };
  29. typedef struct DModalTextData DModalTextData;
  30.  
  31. //----------
  32. DModalTextData*        NewDModalTextData ();
  33. void    DeleteDModalTextData        (DModalTextData*        data);
  34.  
  35. //----------
  36. void        DModalTextData_Init    (DModalTextData*        self);
  37. void        DModalTextData_Free    (DModalTextData*        self);
  38.  
  39. StringPtr    GetSmall2        (DModalTextData*        self);
  40. void        SetSmall2Str    (DModalTextData*        self,
  41.                              Str255        inValue);
  42. void        SetSmall2Handle    (DModalTextData*        self,
  43.                              CharsHandle        inValue);
  44. StringPtr    GetLarge2        (DModalTextData*        self);
  45. void        SetLarge2Str    (DModalTextData*        self,
  46.                              Str255        inValue);
  47. void        SetLarge2Handle    (DModalTextData*        self,
  48.                              CharsHandle        inValue);
  49. SInt32        GetX12346        (DModalTextData*        self);
  50. void        SetX12346        (DModalTextData*        self,
  51.                              SInt32        inValue);
  52. double        GetX12345e7        (DModalTextData*        self);
  53. void        SetX12345e7        (DModalTextData*        self,
  54.                              double        inValue);
  55. StringPtr    GetPassword2        (DModalTextData*        self);
  56. void        SetPassword2Str    (DModalTextData*        self,
  57.                              Str255        inValue);
  58. void        SetPassword2Handle    (DModalTextData*        self,
  59.                              CharsHandle        inValue);
  60. LongDateRec        GetDate2        (DModalTextData*        self);
  61. void        SetDate2        (DModalTextData*        self,
  62.                              LongDateRec        inValue);
  63. LongDateRec        GetTime2        (DModalTextData*        self);
  64. void        SetTime2        (DModalTextData*        self,
  65.                              LongDateRec        inValue);
  66. StringPtr    GetStyled2        (DModalTextData*        self);
  67. void        SetStyled2Str    (DModalTextData*        self,
  68.                              Str255        inValue);
  69. void        SetStyled2Handle    (DModalTextData*        self,
  70.                              CharsHandle        inValue);
  71.